﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" default-lazy="false" namespace="PetShop.Domain.Model"
				   assembly="PetShop">

	<class name="ItemEntity" table="Item" >

		<id name="Id" column="ItemId" type="System.String">
			<generator class="assigned"/>
		</id>

		<property name="InventoryQty" column="InventoryQty" access="field.pascalcase-underscore" not-null="true" type="System.Int32"  insert="true" update="true"/>
		<property name="ListPrice" column="ListPrice" access="field.pascalcase-underscore" not-null="true" type="System.Decimal"  insert="true" update="true"/>
		<property name="Description" column="Description" access="field.pascalcase-underscore" not-null="true" type="System.String"  length="80" insert="true" update="true"/>
		<many-to-one name="Product"  access="field.pascalcase-underscore" not-null="true" outer-join="auto" insert="true" update="true">
			<column name="ProductId"/>
		</many-to-one>

		
	</class>
</hibernate-mapping>
